package org.br.erp.base.service;

import org.br.erp.base.entity.Scmpaytermsitem;
import org.br.erp.base.entity.Scmpayterms;
import com.baomidou.mybatisplus.extension.service.IService;
import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: 付款条款
 * @Author: jeecg-boot
 * @Date:   2023-01-04
 * @Version: V1.0
 */
public interface IScmpaytermsService extends IService<Scmpayterms> {

	/**
	 * 添加一对多
	 *
	 * @param scmpayterms
	 * @param scmpaytermsitemList
	 */
	public void saveMain(Scmpayterms scmpayterms,List<Scmpaytermsitem> scmpaytermsitemList) ;
	
	/**
	 * 修改一对多
	 *
   * @param scmpayterms
   * @param scmpaytermsitemList
	 */
	public void updateMain(Scmpayterms scmpayterms,List<Scmpaytermsitem> scmpaytermsitemList);
	
	/**
	 * 删除一对多
	 *
	 * @param id
	 */
	public void delMain (String id);
	
	/**
	 * 批量删除一对多
	 *
	 * @param idList
	 */
	public void delBatchMain (Collection<? extends Serializable> idList);
	
}
